# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-beautifulsoup3
pkgver=3.2.1
pkgrel=6
pkgdesc='HTML/XML parser for quick-turnaround applications like screen-scraping.'
arch=('any')
url='https://pypi.python.org/pypi/BeautifulSoup/'
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-$pkgver.tar.gz")
sha512sums=('9eac774f7ef03c3b2394a8358d51cc098229bf2d1cf2f3229ab9c052836dbf4f5821321f6b21d0494fc00898d42b3aaeff850c177fad36969e357503c2fdaf0f')

build() {
  cd "BeautifulSoup-$pkgver"

  python2 setup.py build
}

package() {
  cd "BeautifulSoup-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

